package com.example.admin.controller;

import com.example.admin.Dto.PendingTaskDto;
import com.example.admin.Vo.PendingTaskVO;
import com.example.admin.base.PageResponse;
import com.example.admin.base.ResponseResult;
import com.example.admin.service.PenddingTaskservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pending_tasks")
public class PenddingTaskWeb {
    @Autowired
    PenddingTaskservice penddingTaskservice;
    @PostMapping("/selectByPage")
    public ResponseResult selectByPage(@RequestBody PendingTaskDto pendingTaskDto){
        System.out.println("我进来了");
        PageResponse<PendingTaskVO> findtask = penddingTaskservice.findtask(pendingTaskDto);
        return ResponseResult.success(findtask);
    }
}
